package com.wenlin.userservice.mapper;

import com.wenlin.userservice.domain.User;
/***
 *  Created with IntelliJ IDEA.
 *  User:  wenlin
 *  Date:  2017-11-023
 *  Time: 15:42
 *  Description:user dao层接口
 **/
public interface UserMapper {
    /**
     * 根据主键删除用户
     *
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *插入
     *
     */
    int insert(User record);

    /**
     *条件插入
     *
     */
    int insertSelective(User record);

    /**
     *根据主键查询
     *
     */
    User selectByPrimaryKey(Integer id);

    /**
     *选择修改
     *
     */
    int updateByPrimaryKeySelective(User record);

    /**
     *全部修改
     *
     */
    int updateByPrimaryKey(User record);


}